<!--{template 'header'}-->
<!-- Container -->
<div id="container">
  <div class="shell">
    <!-- Main -->
    <div id="main">
      <div class="cl">&nbsp;</div>
      <!-- Content -->
      <div id="content">
      <!-- Box -->
        <div class="box">
          <!-- Box Head -->
          <div class="box-head">
            <h2>新增/修改成员信息(RT会自动修正部分数据,所以一般只需要填写名字和注释)</h2>
          </div>
          <!-- End Box Head -->
          <form action="#" method="post">
            <!-- Form -->
            <div class="form">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th>游戏ID</th>
                <th>职业</th>
                <th>种族</th>
                <th>性别</th>
                <th>备注</th>
                <th>操作</th>
              </tr>
              <tr>
                <td align="center"><input name="playerid" type="hidden" id="playerid" value="$player[m_id]" />
                  <input name="m_name" type="text" class="field" value="$player[m_name]" /></td>
                <td align="center">
                	<select name="m_class" class="field small-field" id="m_class">
					  <!--{echo html_options($opt_classes, $player[m_class])}-->
					</select>
                </td>
                <td align="center">
                <select name="m_race" class="field small-field" id="m_race">
					  <!--{echo html_options($opt_races, $player[m_race])}-->
					</select>
                </td>
                <td align="center">
                <select name="m_sex" class="field small-field" id="m_sex">
					  <!--{echo html_options($sex, $player[m_sex])}-->
					</select>
                </td>
                <td align="center"><input name="m_cmt" type="text" class="field" value="$player[m_cmt]" id="m_cmt" /></td>
                <td align="center"><a href="#" class="ico del">删</a></td>
              </tr>
            </table>
            </div>
            <!-- End Form -->
            <!-- Form Buttons -->
            <div class="buttons">
              <input type="submit" class="button" value="确认修改" />
            </div>
            <!-- End Form Buttons -->
          </form>
        </div>
        <!-- End Box -->
        <!-- Box -->
        <div class="box">
          <!-- Box Head -->
          <div class="box-head">
            <h2>成员信息</h2>
          </div>
          <!-- End Box Head -->
            <div class="table">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <th width="60"></th>
                <th>游戏ID</th>
                <th>种族</th>
                <th>备注</th>
                <th width="80">设置</th>
              </tr>
              <!--{loop $players $row}-->
              <tr class="$row[css]">
                <td><img src="./cacheimg.php?img={echo base64_encode($row[icon])}" width="24" height="24"> <img src="./cacheimg.php?img={echo base64_encode($row[race_icon])}" width="24" height="24"></td>
                <td>$row[m_name]</td>
                <td>$row[m_race]</td>
                <td><h3>$row[m_cmt]</h3></td>
                <td><a href="./?admin/players&playerid=$row[m_id]#" class="ico edit">改</a> <a href="#" class="ico del">删</a></td>
              </tr>
              <!--{/loop}-->
            </table>
            <!-- Pagging -->
            <div class="pagging">
              <div class="left">共有{echo $pager->tRow}条记录</div>
              <div class="right"><!--{echo $pager->GetFullSide()}--></div>
            </div>
            <!-- End Pagging -->
            </div>
        </div>
        <!-- End Box -->
        

      </div>
      <!-- End Content -->
      <!-- Sidebar -->
	  <!--{template 'players_side'}-->
	  <!-- End Sidebar -->
      <div class="cl">&nbsp;</div>
    </div>
    <!-- Main -->
  </div>
</div>
<!-- End Container -->
<!--{template 'footer'}-->
